From ae9a29f8ce122a6263404eb60043aa968c26d90a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 13 Feb 2019 18:14:48 -0500 Subject: [PATCH] Exempt "pages" properties from defaultvalue test Ironically, these properties are too good - they always give you a proper value, which is unfortunately different from the declared default value, which is NULL. So, don't check these. --- testsuite/gtk/defaultvalue.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c index f4c335037f..9ef83c1aaf 100644 --- a/testsuite/gtk/defaultvalue.c +++ b/testsuite/gtk/defaultvalue.c @@ -157,7 +157,12 @@ test_type (gconstpointer data) continue; if (g_type_is_a (type, GTK_TYPE_ASSISTANT) && - (strcmp (pspec->name, "use-header-bar") == 0)) + (strcmp (pspec->name, "use-header-bar") == 0 || + strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */ + continue; + + if (g_type_is_a (type, GTK_TYPE_STACK) && + (strcmp (pspec->name, "pages") == 0)) /* pages always gets a non-NULL value */ continue; if (g_type_is_a (type, GTK_TYPE_POPOVER) && -- 2.30.2